package com.yaorange.module.system.mapper;

import com.yaorange.pojo.SysPermission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysPermissionMapper {
    @Select("select * from sys_permission order by perm_order")
    List<SysPermission> findPermissionTree();

    List<SysPermission> findPermissionTreeByUserId(Integer id);
}
